package com.whl.common;

public class WhlConstants {

	public static final String app = "gj";

	public static final String ENCODE_UTF8 = "UTF-8";

	public static final Integer PAGE_SIZE = 10;
	public static final Integer CUR_PAGE = 1;

	public static final String ACCESS_TOKEN = "access-token";

	public class ContentType {
		public static final String APPLICATION_ATOM_XML = "application/atom+xml";
		public static final String APPLICATION_FORM_URLENCODED = "application/x-www-form-urlencoded";
		public static final String APPLICATION_JSON = "application/json";
		public static final String APPLICATION_OCTET_STREAM = "application/octet-stream";
		public static final String APPLICATION_SVG_XML = "application/svg+xml";
		public static final String APPLICATION_XHTML_XML = "application/xhtml+xml";
		public static final String APPLICATION_XML = "application/xml";
		public static final String MULTIPART_FORM_DATA = "multipart/form-data";
		public static final String TEXT_HTML = "text/html";
		public static final String TEXT_PLAIN = "text/plain";
		public static final String TEXT_XML = "text/xml";
		public static final String WILDCARD = "*/*";

	}

	public class Dict {
		public static final String TYPE_REG = "reg";
		public static final String KEY_REG_MOBILE = "mobile";
		public static final String KEY_REG_EMAIL = "email";
		
		public static final String TYPE_WX_APP = "wxApp";
		public static final String KEY_WX_APP_SHOP_NAME = "shopName";
		
		public static final String TYPE_ORDER_CONNECT = "orderConnect";
		public static final String KEY_ORDER_CONNECT_MOBILE = "moblie";
		
		public static final String DELIVERY = "delivery";
		public static final String KEY_DELIVERY_TIME = "deliveryTime";
	}

	public class ErrMsg {

		public final static String SMS_SEND_ERR = "发送短信失败";
		public final static String CHASET_ERR = "编码问题";
		public final static String KAFKA_DEAL_SMS_SEND_ERR = "kafka处理短信发送失败";
		public final static String YX_STATE_REPORT_NO_FOUND = "阅信状态返回码没维护【%s】";
		public static final String HTTP_ERR = "通讯异常";
		public static final String HTTP_CERT_ERR = "http证书异常";
		public static final String SSL_ERR = "ssl异常";
		public static final String ACCOUNT_NOT_EXIST = "账号不存在【%s】";
		public static final String ACCOUNT_OR_PWD_ERR = "账号或密码有误【%s】";
		public static final String ACCOUNT_DISABLE_ERR = "账号末启用【%s】";
		public static final String TIMEOUT_OPR_ERR = "超时操作";
		public static final String WORKFLOW_DATA_ERR = "工作流基础数据有误【%s】";
		public static final String APPROVAL_END_ERR = "审核流程已经结束";
		public static final String ACTIVITY_NOT_START_ERR = "审核流程还没开始【%s】";
		public static final String DATA_NOT_EXIST = "找不到数据【%s】";

	}

	public class Redis {
		public static final String SESSION = app + ":" + "session:";
		public static final String RECEIPT_TIME = app + ":" + "configReceiptTime";
		public static final String CANCEL_ORDER_TIME = app + ":" + "cancelOrderTime";
		public static final String FREIGHT_AMOUNT = app + ":" + "freightAmount";
		public static final String FREE_FREIGHT_AMOUNT = app + ":" + "freeFreightAmount";
		public static final String ROLLBACK_TIME = app + ":" + "rollbackTime";
		public static final String GOODS_KEY = app + ":" + "goodsKey:";
		public static final String MINI_ACCESS_TOKEN = app + ":" + "mini_access_token";
		public static final String TEMPLATEFORMID = app + ":" + "templateFormId:";
		public static final String LOCK_SEQ = app + ":" + "lock:" + "seq:";
		public static final String SMALL_SERVICE_PHONE = app + ":" + "smallServicePhone";


		public static final String LOCK_GOODS_INVENTORY = app + ":" + "lock:" + "goods:";
		public static final String LOCK_GROUP_INVENTORY = app + ":" + "lock:" + "group:";
	}
	
	public class SeqNo {
		public static final String ORDER_NO = "orderNo";
		public static final String REFUND_NO = "refundNo";
		public static final String PAY_TRANSACTION_NO = "payTransactionNo";
		public static final String WITHDRAWAL_NO = "withdrawalNo";
	}
	

}
